<? if(!defined('IN_DISCUZ')) exit('Access Denied'); 
0
|| checktplrefresh('D:\wamp\www\storm\bbs\././templates/default/memcp_credits_action.htm', 'D:\wamp\www\storm\bbs\././templates/default/header_nofloat.htm', 1252942637, '1', './templates/default')
|| checktplrefresh('D:\wamp\www\storm\bbs\././templates/default/memcp_credits_action.htm', 'D:\wamp\www\storm\bbs\././templates/default/footer_nofloat.htm', 1252942637, '1', './templates/default')
;?>
<? include template('header'); if(empty($infloat)) { ?><link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_float.css?<?=VERHASH?>" />

<style type="text/css">
.main { *overflow: hidden; }
.content { margin: 5px; min-height: 400px; <?=FLOATBGCODE?>; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> <?=$navigation?></div>
<div id="wrap" class="wrap s_clear">

<div class="main"><div class="content"><div class="nojs">

<div id="floatwinnojs"><? } ?>

<div class="floatwin" style="width: 350px; height: 155px; overflow: hidden;">
<h3 class="float_ctrl">
<em id="return_credit"><? if($operation == 'transfer') { ?>转账<? } elseif($operation == 'exchange') { ?>兑换<? } elseif($operation == 'addfunds') { ?>充值<? } ?></em>
<span><a title="关闭" onclick="floatwin('close_credit')" class="float_close" href="javascript:;">关闭</a></span>
</h3>
<div class="floatbox">
<form id="confirmform" class="postbox" method="post" action="memcp.php?action=credits&amp;confirm=yes&amp;infloat=yes" onsubmit="ajaxpost('confirmform', 'return_credit', 'return_credit', 'onerror');return false;">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="handlekey" value="credits" />
<? if($operation == 'transfer') { if(!$to) { ?>
<p style="margin-bottom:8px;">您没有输入需要转账的接收人或者接收人不存在</p>
<? } elseif(!$transferamount) { ?>
<p style="margin-bottom:8px;">您没有输入需要转账的数量</p>
<? } else { ?>
<input type="hidden" name="operation" value="transfer" />
<input type="hidden" name="transfersubmit" value="yes" />
<input type="hidden" name="amount" value="<?=$transferamount?>" />
<input type="hidden" name="to" value="<?=$to?>" />
<p>您要转账<?=$extcredits[$creditstrans]['title']?> <?=$transferamount?> <?=$extcredits[$creditstrans]['unit']?>给 <?=$to?>, 请输入登录密码: </p>
<p style="margin-bottom:8px;"><input type="password" name="password" value="" class="txt" /></p>
<p>转账留言</p>
<p><input name="transfermessage" size="40" class="txt" /> <input name="confirm" type="submit" value="确定" /></p>
<? } } elseif($operation == 'exchange') { if($fromcredits == $tocredits) { ?>
<p style="margin-bottom:8px;">您要兑换的积分相同，无法兑换</p>
<? } elseif(!$netamount) { ?>
<p style="margin-bottom:8px;">您没有输入需要兑换的数量</p>
<? } else { ?>
<input type="hidden" name="operation" value="exchange" />
<? if($outexange) { ?>
<input type="hidden" name="outexange" value="1" />
<? } else { ?>
<input type="hidden" name="outexange" value="0" />
<? } ?>
<input type="hidden" name="amount" value="<?=$exchangeamount?>" />
<input type="hidden" name="fromcredits" value="<?=$fromcredits?>" />
<input type="hidden" name="tocredits" value="<?=$tocredits?>" />
<input type="hidden" name="exchangesubmit" value="yes" />
<p style="margin-bottom:8px;">您要兑换 <strong>
<? if($outexange) { ?>
<?=$outextcredits[$tocredits]['title']?> <?=$exchangeamount?> <?=$outextcredits[$tocredits]['unit']?>
<? } else { ?>
<?=$extcredits[$tocredits]['title']?> <?=$exchangeamount?> <?=$extcredits[$tocredits]['unit']?>
<? } ?>
</strong>, 需要付出<strong> <?=$extcredits[$fromcredits]['title']?> <?=$netamount?> <?=$extcredits[$fromcredits]['unit']?></strong></p>
请输入您的登陆密码确认: <br />
<input type="password" name="password" value="" class="txt" size="20"/> <input name="confirm" type="submit" value="确定" />
<? } } elseif($operation == 'addfunds') { if(!$addfundamount) { ?>
<p style="margin-bottom:8px;">您没有输入需要充值的数量</p>
<? } else { ?>
<input type="hidden" name="operation" value="addfunds" />
<input type="hidden" name="amount" value="<?=$addfundamount?>" />
<input type="hidden" name="addfundssubmit" value="yes" />
<p style="margin-bottom:8px;">您将要充值<?=$extcredits[$creditstrans]['title']?> <?=$addfundamount?> <?=$extcredits[$fromcredits]['unit']?>，所需人民币 <?=$price?> 元</p>
<input name="confirm" type="submit" value="确定" />
<? } } ?>
</form>
</div>
</div>
<script type="text/javascript" reload="1">
function messagehandle_credits(key) {
if(key != 0) {
$('confirmform').style.display = 'none';
$('return_credit').className = 'onright';
creditnoticewin();
}		
}
</script>

<? if(empty($infloat)) { ?></div>

</div></div></div>

</div><? } include template('footer'); ?>
